@import "../../scss/mixin";

.switcher-wrap {
  position: relative;
  width: 100%;
  height: 44px;
  line-height: 44px;
  background-color: #fff;
  @include flex-display;
  @include flex-row;
  .si {
    @include flex-size(1);
    height: 100%;
    text-align: center;
    box-sizing: border-box;
    &:active {
      background-color: #efefef;
      font-size: 15px;
      color: #007aff;
    }
  }
  .switcher-active {
    color: #007aff;
    border-bottom: 4px solid #007aff;
  }
}

.data-list-wrap {
  width: 100%;
  .d-item {
    padding: 12px;
    border-radius: 4px;
    background-color: #fff;
    @include flex-display;
    @include flex-align-center;
    margin: 10px;
    .i-content {
      @include flex-size(1);
      @include wordHidden;
      .i-title {
        font-size: 15px;
        @include wordHidden;
      }
      .i-time, .i-name {
        font-size: 14px;
        margin-top: 6px;
      }
      .i-time {
        color: $gray;
      }
    }
    .i-img {
      width: 44px;
      height: 44px;
      margin-right: 10px;
    }
    @mixin state($font,$icon) {
      font-size: 14px;
      position: relative;
      padding-left: 20px;
      color: $font;
      &:before {
        @include iconCode($icon);
        font-size: 17px;
        color: $font;
        position: absolute;
        top: -1px;
        left: 0;
      }
    }
    .i-state-pend {
      @include state($red, "\e699")
    }
    .i-state-done {
      @include state($green, "\e629")
    }
    .i-state-complete {
      @include state($gray, "")
    }
  }
}

.d-item-wrap {
  .d-title {
    @include titleWrap;
  }
  .d-content {
    @include contentWrap;
    .item {
      @include contentItem;
      .label {
        color: #7c7c7c;;
        @include itemLabel;
      }
      .txt {
        @include itemTxt;
      }
      .link-wrap {
        @include itemLink;
      }
      .files {
        @include itemFiles;
      }
      .txt-area{
        text-indent: 4px;
        height: 160px;
        width: 100%;
        line-height: 22px;
        border: none;
      }
      .title{
        @include wordHidden_2;
        margin-bottom: 12px;
        line-height: 24px;
      }
      .news-s{
        @include flex-display;
        @include flex-align-center;
        font-size:14px;
        @include wordHidden;
        .content{
          @include flex-size(1)
        }
        .btn-d{
          @include btn-small(#fff,$green);
          z-index: 100;
          @include clickActive;
        }
      }
      .drag-wrap{
        position: absolute;
        top:0;
        left: 0;
        height: 100%;
        width: 40px;
        @include flex-display;
        @include flex-align-center;
        @include flex-pack-center;
        .iconfont{
          font-size: 38px;
          color: $themBlue;
        }
      }
      .close-wrap{
        position: absolute;
        top: 0;
        right: 4px;
        z-index: 100;
        .iconfont{
          font-size: 20px;
          color: $red;
        }
      }
    }
    .edit-item{
      padding-left: 40px;
      padding-right: 20px;
    }
    .fold-hide{
      &:nth-child(n+3):before{
        display: none;
      }
      &:nth-child(n+4){
        display: none;
      }
    }
    .inline-wrap {
      @include itemInlineWrap;
    }
  }
  .btn-edit{
    position: absolute;
    top: 4px;
    right: 8px;
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 12px;
    background-color: #03a9f4;
    color: #fff;
  }
}

.advice-wrap {
  .title {
    @include titleWrap;
  }
  .content {
    @include contentWrap;
    .item {
      @include contentItem;
      color: $font-color-blue1;
      .top {
        position: relative;
        .iconfont {
          padding-left: 6px;
          padding-right: 6px;
          font-size: 22px;
          color: #f37f52;
        }
        .time {
          position: absolute;
          top: 0;
          right: 10px;
          font-size: 15px;
        }
      }
      .txt {
        word-break: break-all;
        padding-left: 12px;
        padding-top: 6px;
        padding-bottom: 4px;
        color: $themFont;
      }
    }
    .fold-hide{
      &:nth-child(n+3):before{
        display: none;
      }
      &:nth-child(n+4){
        display: none;
      }
    }
  }
}

.feedBack-item{
  min-height: 32px;
  padding: 6px 0;
  font-size: 15px;
  @include flex-display;
  @include flex-align-center;
  .btn{
    @include btn-small(#fff,#2196f3);
  }
}

.btn-wrap {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 16px;
  @mixin btn($bc,$bac) {
    border-radius: 2px;
    width: 100%;
    height: 36px;
    line-height: 36px;
    font-size: 16px;
    text-align: center;
    margin: 12px auto;
    color: #fff;
    background-color: $bc;
    border: 1px solid $bac;
    transition: background-color .2s ease;
    &:active {
      border: 1px solid $bc;
      background-color: $bac;
      color: #d8d8d8;
    }
  }
  .btn-b {
    @include btn($themBlue, #0d85ea);
  }
  .btn-g {
    @include btn(#dd524d, #ff6d50);
  }
}
